﻿@model IPagedList<Propro.Models.Project>

<div id="projectList">

    @foreach (var item in Model)
    {
        <div>
            <span class="projectLineName">@Html.ActionLink(Html.DisplayFor(modelItem => item.Name).ToHtmlString(), "Details", new { id = item.ProjectId })</span>
            <span class="projectLineDesc">@Html.DisplayFor(modelItem => item.ShortDescription)</span>
            <span class="projectLineState">@Html.DisplayFor(modelItem => item.State)</span>
        </div>

        <hr />

    }

    <div class="pagedList" data-otf-target="#projectList">
        @Html.PagedListPager(Model, page => Url.Action("list", new { page }),
        PagedListRenderOptions.MinimalWithItemCountText)
    </div>

</div>